<?php
	
// CALLED IN MOD
if(isset($MOD)){
		
	// CREATE MORE COMFORTABLE ERROR AJAX HERE
	echo json_encode(array("cde"=>$errcde,"trg"=>($ajx['trg'])?$ajx['trg']:'root',"err"=>$err[$errcde],"red"=>array("uri"=>"?fresh=1","int"=>3000)));
	exit();

// CALLED WHILE VALIDATING PAGE
} else {
	
	if(page_has('parent')) {
	
		// JUST A REDIRECT, SHOULD BE SOMETHING ELSE
		header("Location: ".engine_get('url'));
		exit();
	}

}

?>